﻿using ErrorOr;
using Gym.Domain.Common;
using Gym.Domain.Common.EventualConsistency;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Gym.Domain.SessionAggregate.Events
{
    public record SessionSpotReservedEvent(Session Session, Reservation Reservation): IDomainEvent
    {
        public static readonly Error ParticipantScheduleUpdateFailed = EventualConsistencyError.From(
        code: "SessionSpotReserved.ParticipantScheduleUpdateFailed",
        description: "添加课程到计划失败");
    }
}
